#include <cstdio>
#include <iostream>
using namespace std;
int main()
{
	int a,b,sum=0;
	scanf("%d/n",&b);
	int c=1;
	while(b>=c)
	{
		scanf("%d",&a);
		sum=a+sum;
		c++;
		
	}
	printf("%d",sum);
	return 0;
}
